//
//  CoreDataManager.h
//  CoreData
//
//  Created by 郭明皓 on 15/11/20.
//  Copyright © 2015年 郭明皓工作室. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreData/CoreData.h>
@interface CoreDataManager : NSObject
//数据管理器
@property (readonly, strong, nonatomic) NSManagedObjectContext *managedObjectContext;
//模型管理器
@property (readonly, strong, nonatomic) NSManagedObjectModel *managedObjectModel;
//连接器
@property (readonly, strong, nonatomic) NSPersistentStoreCoordinator *persistentStoreCoordinator;

- (void)saveContext;
- (NSURL *)applicationDocumentsDirectory;


+ (CoreDataManager *)defaults;

@end
